package com.ziq.zcamp.view.edit;

import java.util.Objects;

/**
 * 结合SupportTopicsListEditText 作为 hashmap的key
 */
public class TopicsKeyModel {

    private final int indexOfList;

    private final int indexOfStr;

    public TopicsKeyModel(int indexOfList, int indexOfStr) {
        this.indexOfList = indexOfList;
        this.indexOfStr = indexOfStr;
    }

    public int getIndexOfList() {
        return indexOfList;
    }

    public int getIndexOfStr() {
        return indexOfStr;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TopicsKeyModel that = (TopicsKeyModel) o;
        return indexOfList == that.indexOfList && indexOfStr == that.indexOfStr;
    }

    @Override
    public int hashCode() {
        return Objects.hash(indexOfList, indexOfStr);
    }
}
